import { $http } from './index';
import { TreeChildModel } from '@/components/CitySelecter/citySelecter.module';

export function getAreaData(parentCode: string): Promise<Array<TreeChildModel>> {
    return $http.get(`/dictArea/children?parentCode=${parentCode}`);
}
export const getAddressTemplate =()=> {
    return $http.get('/lbs/getAddressTemplate');
};
export const getParseLbsAddress =(params:FormData)=> {
    return $http.post('/lbs/parseLbsAddress',params);
};
export const getLbsQueryData =(params: object)=> {
    return $http.post('/mediaResource/lbsMediaResourceCoverage', params);
};
